package com.example.controller;

import com.example.entity.Household;
import com.example.result.CommonResult;
import com.example.service.HouseholdService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/household")
public class HouseholdController {
    @Resource
    private HouseholdService householdService;

    /**查询房屋
     * @return
     */
    @GetMapping("/gethousehold")
    public CommonResult gethousehold(){
        return CommonResult.ok(householdService.gethousehold());
    }

}
